package com.baizhi.controller;

import com.baizhi.entity.CmfzAudio;
import com.baizhi.service.CmfzAudioService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("audio")
public class CmfzAudioController {
    @Autowired
    private CmfzAudioService cmfzAudioService;
    @GetMapping("selectAudio")
    public List<CmfzAudio> selectAudio(int albumId){
        return cmfzAudioService.selectByAlbumId(albumId);
    }
}
